<?php
session_start();
require_once("../models/Unit.php");
class UpdateFinancialInformationController{

	var $financialInformation;
	function sendFinanceData(){
		$this->financialInformation['deposit'] = $_REQUEST['deposit'];
		$this->financialInformation['unit_name'] = $_REQUEST['unit_name'];
		$this->financialInformation['debts'] = $_REQUEST['debts'];

	}
	
	
}

	$a = new UpdateFinancialInformationController;
	$a->sendFinanceData();
	$unit = new Unit;
	$unit->connect();
	$unit->updateFinanceInfo($a->financialInformation);
	echo "You have successfully updated Unit ".$a->financialInformation['unit_name']."'s Financial Information.";


	
?>